﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Modelo;

namespace Datos
{
    public class StockDAL
    {
        public void AddStock(Stock stock)
        {
            using (var db = new FerreteriaContext())
            {
                db.Stock.Add(stock);
                db.SaveChanges();
            }
        }
    }
}
